package WGH;

import java.util.*;

public class ProjectTable {

	private HashMap<String,Project> PrjTable;
	Iterator iter = null;
	
	public Iterator getIter() {		
		return iter = getPrjTable().values().iterator();
	}
	
	public ProjectTable(){
		setPrjTable(new HashMap<String,Project>());
	}
	
	public void insert(String proj) {
		getPrjTable().put(proj, new Project(proj));		
	}



	public boolean selectName(String p) {
		return getPrjTable().containsKey(p);
	}



	public Project getProject(String prj) {
		return getPrjTable().get(prj);
	}
	@Override
	public String toString(){
		return getPrjTable().toString();		
	}

	public HashMap<String,Project> getPrjTable() {
		return PrjTable;
	}

	public void setPrjTable(HashMap<String,Project> prjTable) {
		PrjTable = prjTable;
	}

}
